package com.example.campus.dao.model.shiro;


import com.example.campus.common.ValidationMessageConstants;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Set;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class Role {
    @NotNull(message = "id" + ValidationMessageConstants.SHOULD_NOT_BE_NULL)
    Long id;
    @NotNull(message = "name" + ValidationMessageConstants.SHOULD_NOT_BE_NULL)
    String name;
    String description;
    Set<Permission> permissions;

}
